package com.example.openfeign.api;

import com.example.openfeign.model.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName : OrderFeign
 * @Description : 订单feign接口
 * @Author : tianshuo
 * @Date: 2021-03-23 10:36
 */
@FeignClient(value = "nacos-provider", contextId = "product")
public interface ProductFeign {

    @RequestMapping("/product/{id}")
    public Product product(@PathVariable("id") Integer id);
}

